package com.zhijian.medical.service;

import com.zhijian.entity.PageVo;
import com.zhijian.medical.entity.po.RoutineQc;
import com.zhijian.medical.entity.vo.request.RoutineQcPathologySearchVo;
import com.zhijian.medical.entity.vo.request.RoutineQcSearchVo;
import com.zhijian.medical.entity.vo.request.RoutineQcSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.RoutineQcPathologyVo;
import com.zhijian.medical.entity.vo.response.RoutineQcVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病理-取材 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-24 19:18:37
 */
public interface RoutineQcService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RoutineQc selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RoutineQcVo selectVoById(Long id);

    /**
     * 主键查询vo
     *
     * @param nums
     * @return
     */
    RoutineQcVo selectVoByNums(String nums);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param routineQc
    * @return
    */
    Long insert(RoutineQc routineQc);

    /**
    * 动态新增
    *
    * @param routineQc
    * @return
    */
    Long insertSelective(RoutineQc routineQc);

    /**
    * 更改
    *
    * @param routineQc
    * @return
    */
    boolean update(RoutineQc routineQc);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RoutineQc record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RoutineQcSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RoutineQcSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param routineQcSearchVo
    * @return
    */
    RoutineQcVo selectOne(RoutineQcSearchVo routineQcSearchVo);

    /**
    * 总数
    *
    * @param routineQcSearchVo
    * @return
    */
    Integer count(RoutineQcSearchVo routineQcSearchVo);

    /**
    * 列表
    *
    * @param routineQcSearchVo
    * @return
    */
    List<RoutineQcVo> selectList(RoutineQcSearchVo routineQcSearchVo);

    List<RoutineQcPathologyVo> selectListPathology(RoutineQcPathologySearchVo routineQcSearchVo);

    List<RoutineQcPathologyVo> selectPatholoyListDay(RoutineQcPathologySearchVo searchVo);

    Page<RoutineQcPathologyVo> selectPageDay(PageVo pageVo);

    /**
    * 分页查询
    *
    * @param routineQcSearchVo
    * @return
    */
    Page<RoutineQcVo> selectPage(RoutineQcSearchVo routineQcSearchVo);

    /**
     * 分页查询-病理信息
     *
     * @param routineQcSearchVo
     * @return
     */
    Page<RoutineQcPathologyVo> selectPagePathology(RoutineQcPathologySearchVo routineQcSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RoutineQc> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param routineQcSearchVo
    * @return
    */
    void deleteByCondition(RoutineQcSearchVo routineQcSearchVo);

    int countPatholoy(RoutineQcPathologySearchVo routineQcSearchVo);

    int countPatholoyDay(String startTime);
}